﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace UserCenter.Console.Sdk.Demo.Models
{
    public class RequestResult
    {
        public bool Success { get; set; }
        public string Message { get; set; }
        public object Result { get; set; }

        internal void Error(string msg)
        {
            Success = false;
            Message = msg;
        }

        internal void Ok(object result = null)
        {
            Success = true;
            Result = result;
        }
    }
}